//
//  RepeatDateCell.m
//  YSSmartHome
//
//  Created by yanghao on 16/9/19.
//  Copyright © 2016年 yahaong. All rights reserved.
//

#import "RepeatDateCell.h"

@implementation RepeatDateCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.accessoryView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"scene_date_selected"]];
        
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setRepeatDate:(RepeatDateModel *)repeatDate
{
    _repeatDate = repeatDate;
    self.textLabel.text = repeatDate.title;
    self.accessoryView.hidden = !repeatDate.selected;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
